/*
* @Author: wanghongfucoder
* @Date:   2017-04-12 11:02:44
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-04-12 11:08:29
*/

public class Demo {
	public static void main(String[] args) {
		StudentBO studentBO=new StudentBO();
		for (StudnetVO student : studentBO.getAllStudents()) {
			System.out.println("Student :[RollNo : "+student.getRollNo()+",Name : "+student.getName()+" ]");
		}


		StudnetVO student=studentBO.getAllStudents().get(0);
		student.setName("hah");
		studentBO.updateStudent(student);


		student=studentBO.getStudent(0);
		System.out.println("Student :[RollNo : "+student.getRollNo()+",Name : "+student.getName()+" ]");
	}
}